import instance from "../utils/request";

//购物车列表数据(不区分用户)
export function getCartdata1() {
  return instance({
    url: "/admin/cart/list",
    method: "get",
  });
}

//购物车列表数据(区分用户)
export function getCartdata2() {
  return instance({
    url: "/admin/cart/list2",
    method: "get",
  });
}

//删除列表数据
export function delcartdata(id) {
  return instance({
    url: `/admin/cart/remove/?cartid=${id}`,
    method: "get",
  });
}
